package com.iqik.filter.bean;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class MethodInfo {
    long startTime;
    long takeTime;
    long endTime;
    String methodName;

    public MethodInfo() {

    }

    public MethodInfo(long startTime, long takeTime, String methodName) {
        this.startTime = startTime;
        this.takeTime = takeTime;
        this.methodName = methodName;
        this.endTime = startTime + takeTime;
    }

    @Override
    public String toString() {
        return "MethodInfo{" +
                "startTime=" + startTime +
                ", takeTime=" + takeTime +
                ", endTime=" + endTime +
                ", methodName='" + methodName + '\'' +
                '}';
    }

    public long getStartTime() {
        return startTime;
    }

    public long getTakeTime() {
        return takeTime;
    }

    public String getMethodName() {
        return methodName;
    }

    public long getEndTime() {
        return endTime;
    }
}
